package ModelLayer;

import java.sql.Date;
import java.util.List;

public class SalesOrder
{
	private List<OrderLine> orderLines;
	
	private int id;
	private Customer customer;
	private Date date;
	private double orderTotal = 0;
	private Date deliveryDate;
	
	public SalesOrder()
	{
	}

	public SalesOrder(int id)
	{
		this.id = id;
	}

	public SalesOrder(Customer customer, Date date, double orderTotal,
			Date deliveryDate)
	{
		this.customer = customer;
		this.date = date;
		this.orderTotal = orderTotal;
		this.deliveryDate = deliveryDate;
	}

	public List<OrderLine> getOrderLines()
	{
		return orderLines;
	}

	public int getId()
	{
		return id;
	}

	public Customer getCustomer()
	{
		return customer;
	}

	public Date getDate()
	{
		return date;
	}

	public double getOrderTotal()
	{
		return orderTotal;
	}

	public Date getDeliveryDate()
	{
		return deliveryDate;
	}

	public void setOrderLines(List<OrderLine> orderLines)
	{
		this.orderLines = orderLines;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	public void setCustomer(Customer customer)
	{
		this.customer = customer;
	}

	public void setDate(Date date)
	{
		this.date = date;
	}

	public void setOrderTotal(double orderTotal)
	{
		this.orderTotal = orderTotal;
	}

	public void setDeliveryDate(Date deliveryDate)
	{
		this.deliveryDate = deliveryDate;
	}

	@Override
	public String toString()
	{
		return "SalesOrder [getOrderLines()=" + getOrderLines() + ", getId()="
				+ getId() + ", getCustomer()=" + getCustomer() + ", getDate()="
				+ getDate() + ", getOrderTotal()=" + getOrderTotal()
				+ ", getDeliveryDate()=" + getDeliveryDate() + "]";
	}
	
	

}
